<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:choose>
	<c:when test="${user != null}">
		<c:if test="${usertype == 'Admin User'}">
			<jsp:forward page="404.jsp" />
		</c:if>
	</c:when>
	<c:otherwise>
		<jsp:forward page="login.jsp" />
	</c:otherwise>
</c:choose>
<div id="content">


	<div id="page-heading">
		<h1>Withdraw Money</h1>
	</div>
	<div id="message-area">
		<span style="color: red">${error}</span>
	</div>

	<table 
		id="content-table">
		<tr>
			<th rowspan="3" class="sized"><img
				src="resource/images/shared/side_shadowleft.jpg" width="20"
				height="300" alt="" /></th>
			<th class="topleft"></th>
			<td id="tbl-border-top">&nbsp;</td>
			<th class="topright"></th>
			<th rowspan="3" class="sized"><img
				src="resource/images/shared/side_shadowright.jpg" width="20"
				height="300" alt="" /></th>
		</tr>
		<tr>
			<td id="tbl-border-left"></td>
			<td>
				<!--  start content-table-inner -->
				<div id="content-table-inner">

					<table >
						<tr valign="top">
							<td>
								<!--  start step-holder -->
								<div id="step-holder">
									<div class="step-no">1</div>
									<div class="step-dark-left">
										<a href="#">Withdraw Money</a>
									</div>
									<div class="step-dark-right">&nbsp;</div>
									<div class="step-no-off">2</div>
									<div class="step-light-left">Confirm Transaction</div>
									<div class="step-light-right">&nbsp;</div>
									<div class="step-no-off">3</div>
									<div class="step-light-left">Done</div>
									<div class="step-light-round">&nbsp;</div>
									<div class="clear"></div>
								</div> <!--  end step-holder --> <!-- withdraw info - form =================== START -->
								<form action="withdrawConfirm.html" method="post">
									<table  id="id-form">
										<c:set var="acc" value="${examAccount}" />
										<tr>
											<th valign="top">Account Number:</th>
											<td>${acc.accountNumber }</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">ID Card Number:</th>
											<td>${acc.idCustomer.idCardNumber }</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">Customer Name:</th>
											<td>${acc.idCustomer.lastName} ${acc.idCustomer.midName}
												${acc.idCustomer.firstName}</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">Current Balance:</th>
											<td>${acc.balance }</td>
											<td></td>
										</tr>

										<tr>
											<th valign="top">Money Withdraw:</th>
											<td><input type="number" min="1" max="${acc.balance }" class="inp-form"
												name="moneyWithdraw" /></td>
											<td></td>
										</tr>



										<tr>
											<th>&nbsp;</th>
											<td valign="top"><input type="submit" value=""
												class="form-next" /> <input type="reset" value=""
												class="form-reset" /> <a href="backSearchAccount.html"><input
													type="text" value="" class="form-cancel" /></a></td>
											<td></td>
										</tr>
									</table>
								</form> <!-- withdraw info -form ==================== END  -->

							</td>
							<td></td>
						</tr>
						<tr>
							<td><img src="resource/images/shared/blank.gif" width="695"
								height="1" alt="blank" /></td>
							<td></td>
						</tr>
					</table>

					<div class="clear"></div>


				</div> <!--  end content-table-inner  -->
			</td>
			<td id="tbl-border-right"></td>
		</tr>
		<tr>
			<th class="sized bottomleft"></th>
			<td id="tbl-border-bottom">&nbsp;</td>
			<th class="sized bottomright"></th>
		</tr>
	</table>


	<div class="clear">&nbsp;</div>

</div>